package lab01;

/**
 * Created by Lenovo on 2017/10/10.
 */
public class test11 {
    public static void main(String[] args) {
        int j,n,k=0;
        for (n=3;n<=100;n++){
            j=2;
            while (j<n){
                if (n%j==0)break;
                j++;
            }
            if (j==n){
                k++;
                System.out.println(j+ "\t");
                if (k%5==0)
                    System.out.println();
            }
        }
    }
}
